package com.example.jxchmz;

import androidx.annotation.NonNull;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugin.common.BasicMessageChannel;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.StandardMessageCodec;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterActivity {
    private BasicMessageChannel messageChannel;
    public MainActivity() {
    }
    @Override
    public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
        super.configureFlutterEngine(flutterEngine);
        messageChannel = new BasicMessageChannel(getFlutterEngine().getDartExecutor().getBinaryMessenger(),
                "com.flutter.BasicMessageChannel", StandardMessageCodec.INSTANCE);
        new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "com.rfid.rfidread")
                .setMethodCallHandler(
                        new MethodChannel.MethodCallHandler() {
                            @Override
                            public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result result) {

                            }
                        });
        GeneratedPluginRegistrant.registerWith(flutterEngine);
        // NativeBaseToFlutter.registerWith(this);
    }
    //扫描蓝牙


}
